package com.example.module_vistor.visiternet

import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject

class VisiterRePo @Inject constructor() {
    @Inject
    @VisiterNetMoudle.CommonVisiterApi
    lateinit var visiterApi: VisiterApi

    fun getVisiterInfo(userId: Int) =
       flow {
           emit(visiterApi.getVisiterInfo(userId))
       }.flowOn(Dispatchers.IO)
}